home *** CD-ROM | disk | FTP | other *** search
/ develop, the CD; issue 1 / Apple_Develop_1989.bin / Declaration ROM / ExROM1Fun.a.lst < prev   
File List  |  1989-09-18  |  24KB  |  357 lines

  1.  
  2. MC680xx Assembler - Ver 3.1                                                                                18-Sep-89  Page   1
  3. Copyright Apple Computer, Inc. 1984-1988
  4.  
  5. Loc   F Object Code     Addr  M    Source Statement
  6.  
  7.                                    ;---------------------------------------------------------------------------------------
  8.                                    ;
  9.                                    ;File:          ExROM1Fun.a
  10.                                    ;Dev system:    MPW 3.0
  11.                                    ;By:            MacDTS
  12.                                    ;Date:            8/08/89
  13.                                    ;
  14.                                    ; This is a very small sample declaration ROM with the required board
  15.                                    ; sResource and a functional sResource (which is blank).
  16.                                    ; The board id and functional sResource types are especially bogus - your values
  17.                                    ; must be obtained from MacDTS, after sending in the required information.
  18.                                    ; Anyway, this file shows how to put together a ROM.  You also need
  19.                                    ; the Cards and Drivers book, with the source code for a ROM and driver.
  20.                                    ; Both are stripped down versions of the Apple Macintosh Video card ROM and
  21.                                    ; video driver aka the TFB board.  There are also other examples and exploded
  22.                                    ; drawings of declaration ROMs on the Developer Helper CD. Volume one is
  23.                                    ; known as "Phil and Dave's Excellent CD".  The examples, tools, and drawings are
  24.                                    ; also on AppleLink.  To get to them, go into (in order):
  25.                                    ;
  26.                                    ;  Developer Services bulletin board icon
  27.                                    ;     Developer Technical Support folder
  28.                                    ;        Macintosh folder
  29.                                    ;           Tools folder
  30.                                    ;             Card Dev tools folder
  31.                                    ;
  32.                                    ;
  33.                                    ; In the Card Dev Tools folder are other folders containing tools and
  34.                                    ; libraries.  These include:
  35.                                    ;
  36.                                    ; Examples folder            - contains example declaration ROMs, video driver,
  37.                                    ;                              source to a program like the GetsInfo program found
  38.                                    ;                              in the Slot Tools folder
  39.                                    ; Gamma Information folder    - contains documention discussing gamma table format.
  40.                                    ;                              This will be updated in later documentation for the
  41.                                    ;                              new 32-bit QuickDraw.  Eventually, the Cards and
  42.                                    ;                              Drivers book will contain the new gamma information,
  43.                                    ; NuBusTester folder        - contains a library to detect new ROMs with fixed
  44.                                    ;                              Slot Manager (Slot Manager that runs in 32-bit mode
  45.                                    ;                              as opposed to 24-bit mode)
  46.                                    ; Training Tools folder        - contains MacDraw drawings of exploded
  47.                                    ;                              configuration ROMs (like the existing Apple video
  48.                                    ;                              card ROM and the Apple EtherNet board ROM.
  49.                                    ;
  50.                                    ; Slot tools folder            - Inside, you'll find these tools:
  51.                                    ;
  52.                                    ;                              CRCPatch - MPW tool that calculates and patches in
  53.                                    ;                              the crc value of the assembled Declaration ROM file.
  54.                                    ;
  55.                                    ;                              Data - MPW tool takes the assembled file and strips
  56.                                    ;                              off the code 0 segment,leaving the code 1 segment
  57.                                    ;                              (the raw code).  The resulting file can then be
  58.                                    ;                              downloaded to a rom burning machine.
  59.                                    ;
  60.                                    ;                              Tjscomm - A small terminal program that can be used
  61.                                    ;                              to download the data file to a rom burning machine.
  62.                                    ;
  63.                                    ;                              SlotMgrTst - application that excersises the slot
  64.                                    ;                              manager by making slot manager calls
  65.                                    ;
  66.                                    ;                              GetsInfo - application that displays sResources and
  67.                                    ;                              other configuration ROM information
  68.                                    ;
  69.                                    ; Disclaimer: the above may be reorganized at any time, or changed via additions
  70.                                    ; and deletions.
  71.                                    ;
  72.                                    ;
  73.                                    ;  The general structure of this example ROM is:
  74.                                    ;
  75.                                    ;                        [Format/Header]
  76.                                    ;                                |
  77.                                    ;                                |
  78.                                    ;                      [sResource Directory]
  79.                                    ;                            /        \
  80.                                    ;                           /         \
  81.  
  82. MC680xx Assembler - Ver 3.1                                                                                18-Sep-89  Page   2
  83. Copyright Apple Computer, Inc. 1984-1988
  84.  
  85. Loc   F Object Code     Addr  M    Source Statement
  86.  
  87.                                    ;                          /              \
  88.                                    ;                         /               \
  89.                                    ;            [Board sResource]        [Functional sResource]
  90.                                    ;                - Primary Init.            - Driver Directory.
  91.                                    ;                - board id
  92.                                    ;                - Vendor Info.
  93.                                    ;
  94.                                    ;
  95.                                    ;  If you want to print this, I suggest using landscape mode!!!
  96.                                    ;
  97.                                    ;-------------------------------------------------------------------
  98.  
  99.                                                MACHINE        MC68020
  100.  
  101.                                    ;=====================================================================
  102.                                    ;    Initial Assembler Directives
  103.                                    ;=====================================================================
  104.                                                    PRINT    ON
  105.  
  106.                                    ;
  107.                                    ;=====================================================================
  108.                                    ;    BEGIN Declaration ROM
  109.                                    ;=====================================================================
  110. 00000                              SampleDeclROM    MAIN
  111. 00000
  112. 00000
  113. 00000
  114. 00000                              ;*************************************************************
  115. 00000                              ;        Constants
  116. 00000                              ;*************************************************************
  117. 00000
  118. 00000   0000 1000                  ROMSize            EQU        $1000                        ;4K byte ROM in this example
  119. 00000   0000 ABCD                  TheBoardId        EQU        $ABCD                        ;the Board Id (DON'T USE
  120. 00000                                                                                  ; THIS-GET from DTS!)
  121. 00000
  122. 00000                                                                                  ;board sResource equates
  123. 00000                                                                                  ;the following two lines are
  124. 00000                              ;catBoard        EQU         1                        ;commented out since the equates
  125. 00000                              ;TypeBoard        EQU         0                        ;are already defined in ROMEqu.a
  126. 00000   0000 0000                  DrSwBoard        EQU         0                        ;NOT in ROMEqu.a, define it here
  127. 00000   0000 0000                  DrHwBoard        EQU         0                        ;NO